Restricting access to application programming interfaces (APIs)

ABSTRACT

Examples of the present disclosure describe systems and methods for restricting access to application programming interfaces (APIs). For example, when a process calls an API, the API call may be intercepted by a security system for evaluation of its trustfulness before the API is allowed to run. Upon intercepting an API call, the process calling the API may be evaluated to determine if the process is known to the security system, such that known processes that are untrusted may be blocked from calling the API. Further, when the security system cannot identify the process calling the API, the security service may evaluate a call stack associated with the call operation to determine if attributes of the call operation are known to the security system. If the call operation is known to the security system as untrusted, the call operation may be blocked from calling the API.

CROSS-REFERENCE TO RELATED APPLICATION

This application claims priority to U.S. Provisional Application No.62/656,722, entitled “Restricting Access to Application ProgrammingInterfaces (APIs),” filed on Apr. 12, 2018, the entire disclosure ofwhich is hereby incorporated by reference in its entirety.

BACKGROUND

A malicious program, such as ransomware and malware, may attack acomputing device by searching the file system for documents, photos,and/or other files of interest. Once such files are found, the maliciousprogram may encrypt the files to block access for the user and/or copythe files to obtain information about the user. In examples, a ransompayment may be extracted from the user. Computer security programs mayprovide protection from such security threats, however such programstypically only perform a signature check on malicious programs, whichmay generally only catch known threats.

It is with respect to these and other general considerations that theaspects disclosed herein have been made. Also, although relativelyspecific problems may be discussed, it should be understood that theexamples should not be limited to solving the specific problemsidentified in the background or elsewhere in this disclosure.

SUMMARY

Examples of the present disclosure describe systems and methods forrestricting access to application programming interfaces (APIs). Forexample, when a process calls an API on an operating system, the APIcall may be intercepted by a security system for evaluation of a trustlevel of the process before the API is allowed to run. In an aspect, APIhooks may be placed on APIs used to find files on the operating system.Upon intercepting an API call, the process calling the API may beevaluated to determine if the process is known to the security system.In some examples, if the process calling the API is known or determinedto be untrustworthy, the process may be blocked from calling the API.

In further examples, when the security system cannot identify theprocess calling the API, the security service may evaluate a call stackassociated with the process to determine if attributes of the calloperation are known to the security system. For example, one or morecall stack attributes (e.g., return addresses, call instructions,pointers, etc.), security certificates, and the like, may be used todetermine a trust level for the process calling the API. In someexamples, if the process is known to the security system asuntrustworthy, the call operation may be blocked from running the API.In other examples, if the process calling the API is unknown to thesecurity system, the call operation may also be blocked from running theAPI.

In aspects, when the process is blocked from running an API, a promptmay be generated so that a user may provide an indication as to whetherthe process should be permitted to complete the API call, if it is sodesired. As a result, malicious programs are restricted from callingAPIs that may expose user files to malicious- and/or exploit-likeactivities. Furthermore, by first evaluating whether the process isknown to be trustworthy, the number of false-positives that may begenerated by the security system are limited or reduced, therebyincreasing the ease of use for the user and improving the overall userexperience. Additionally, by evaluating the underlying call operationassociated with the process, even potentially malicious processes thatmay otherwise be unknown to the security system may be identified andblocked, thereby improving user protection.

This Summary is provided to introduce a selection of concepts in asimplified form that are further described below in the DetailedDescription. This Summary is not intended to identify key features oressential features of the claimed subject matter, nor is it intended tobe used to limit the scope of the claimed subject matter. Additionalaspects, features, and/or advantages of examples will be set forth inpart in the description which follows and, in part, will be apparentfrom the description, or may be learned by practice of the disclosure.

BRIEF DESCRIPTION OF THE DRAWINGS

Non-limiting and non-exhaustive examples are described with reference tothe following figures.

FIG. 1 illustrates an overview of an example system for restricting useof an application programming interface (API) as described herein.

FIG. 2 illustrates an overview of an example call stack.

FIG. 3 illustrates an overview of an example method for restricting useof an API.

FIG. 4 illustrates an overview of an example method for determining atrust level of a process associated with a call operation.

FIG. 5 illustrates one example of a suitable operating environment inwhich one or more of the present embodiments may be implemented.

DETAILED DESCRIPTION

Various aspects of the disclosure are described more fully below withreference to the accompanying drawings, which form a part hereof, andwhich show specific example aspects. However, different aspects of thedisclosure may be implemented in many different forms and should not beconstrued as limited to the aspects set forth herein; rather, theseaspects are provided so that this disclosure will be thorough andcomplete, and will fully convey the scope of the aspects to thoseskilled in the art. Aspects may be practiced as methods, systems ordevices. Accordingly, aspects may take the form of a hardwareimplementation, an entirely software implementation or an implementationcombining software and hardware aspects. The following detaileddescription is, therefore, not to be taken in a limiting sense.

Generally, modern operating systems spend the majority of the timeexecuting code and operational processes in either kernel mode or usermode. Kernel mode may generally be reserved for trusted core operatingsystem components and functions. Accordingly, the code and operationalprocesses executed in kernel mode may be permitted unrestricted accessto CPU instructions, memory addresses, and underlying hardware. Usermode may generally be reserved for untrusted (or semi-trusted)applications and services. In user mode, the code and operationalprocesses may not be permitted to directly access the CPU instructions,memory addresses, and underlying hardware. Rather, the applications andservices may instead use application programming interfaces (APIs)and/or memory sharing techniques to access the hardware, memoryaddresses, and other functionality.

In examples, APIs are typically a set of commands, routines, functions,protocols, data structures, objects, and remote calls associated with anoperating system that enable applications and services to access commonoperations within the underlying computing system. For example, an APImay be directed to file searching functions, file access functions,etc., such that, when called, the API may search a directory for a firstfile or a subdirectory with a name that matches a specific name (or, insome instances, a partial name if wildcards are used). If the functionsucceeds, the return valve of the API call may be a search handle, whichmay be used in a subsequent API call (such as a find next file searchingfunction) and may contain information about the first file or directoryfound. Some malicious programs, such as ransomware and malware, mayoperate by calling such file search APIs in order to search one or morefile systems for documents, photos, and/or any other files of interest.These malicious programs may conduct hundreds or even thousands of suchfile searches to identify files to encrypt and/or copy. As an example,the malicious program may call an API directed to a file searchingfunction, and may search for one or more directories or paths using afile name search that may include a wildcard character, for example, anasterisk (*), a question mark (?), or the like.

Accordingly, the present disclosure describes systems and methods forrestricting the use of such APIs. In an example, a security service maymonitor calls to one or more APIs and may evaluate a trust level of aprocess making calls to the API in order to determine whether the APIshould be blocked from being called by the process. In an example, a“trusted” process may be allowed to call the API, while an “untrusted”process may be blocked from calling the API. This enables blockinguntrusted processes from calling APIs that may be used to identify,access, or manipulate user data, among other actions. In aspects, thesecurity service may place API hooks on APIs that may be used to findfiles on the operating system (e.g., FindFirstFile, FindFirstFileEx, andthe like). In examples, such an API may be referred to as a “filefinding function.” For example, the API hooks may be placed forprocesses running in the user mode of the operating system, such thatcalls to file search APIs by such processes may be evaluated before theAPIs calls are permitted to execute. In some examples, if a call to afile search API includes a wildcard, then the call may be interceptedand subjected to further evaluation. In an example, the intercepted callmay be evaluated to determine a trust level for the process that calledthe API. As an example, a process may be an application (e.g., anexecutable application, a web-based application, a server and/or clientapplication), a plugin, or a module, etc., which may be executed by aprocessing device. By intercepting an API call before the API call isexecuted, untrusted programs may be prevented from engaging inexploit-like behavior and accessing user files. In another example, theAPI hooks may be placed at a lower level of the operating system, forexample, on APIs the kernel mode and the query information file level,in order to monitor and intercept API calls. While example APIs and/orfile finding functions are discussed herein, it will be appreciatedsimilar techniques may be used for other APIs.

Evaluating the trust level may include identifying whether the processis a “known” process based on one or more process attributes (e.g.,name, hash, cryptographic signature, or other identifier). For example,once a process calling an API is identified, the process may be comparedto a list of known processes to determine a trust level for the process(e.g., trusted or untrusted based on the categorization of the process).Accordingly, known trusted processes may be allowed to call the API,while known untrusted processes may be blocked from calling the API.However, in an example with an “unknown” process, the trust level of theprocess may be further evaluated by determining whether the underlyingcall operation is a “known” call operation based one or more call stackattributes (e.g., return addresses, call instructions, pointers, etc.),security certificates, and the like. For example, once the calloperation is identified, the call operation may be compared to a list ofknown call operations to determine the trust level of the call operation(e.g., whether the call operation is trusted or untrusted based on thecategorization of the call operation). Known trusted call operations maybe allowed to call the API, while known untrusted call operation may beblocked from calling the API. Further, “unknown” call operations mayalso be blocked from calling the API. Examples of untrusted processesand/or call operations may be malware and ransomware, although it isappreciated that aspects disclosed herein may be applied to any otherundesirable operational process and/or call operation. Further, whilethe terms trusted and untrusted are used herein, it will be appreciatedthat a trust level may be defined in any of a variety of ways. Forexample, a trust level may comprise a score, such that a score above acertain threshold may indicate a trusted process, while a score belowthe threshold may indicate an untrusted process.

In examples, if the process calling the API is blocked (e.g., as aresult of having an untrusted trust level), the user may be prompted asto whether the security service's blocking of the API call should beoverridden, thereby allowing the process to call the API. For example,if a user indication is received by the prompt that the blocked call isconfirmed (e.g., that the process should not be permitted to call theAPI), the security service may terminate the process and report theprocess back to the security service for further evaluation. However, ifa user indication is received indicating that the process should beallowed to call the API, the process and/or aspects of the calloperation (e.g., return addresses, call instructions, pointers, securitycertificates, etc.) may be whitelisted, such that the process may bemarked as trusted for future API calls and may be allowed without anyfuture prompts. In another example, the user indication may indicatethat the process should be permitted to call the API once, such thatsubsequent calls by the process to the API may be subject to a similarevaluation as discussed above. In some examples, an informationalindication may be presented to the user, such that the user may beinformed that the process was blocked. In other examples, the processmay be blocked automatically (e.g., without the receipt of user input).It will be appreciated that aspects described herein may be performedautomatically, with manual input, or any combination thereof.

FIG. 1 illustrates an overview of an example system 100 for restrictinguse of an API. Example system 100 is a combination of interdependentcomponents that interact to form an integrated whole. Components of thesystems may be hardware components or software implemented on and/orexecuted by hardware components of the systems. In examples, system 100may include any of hardware components (e.g., used to execute/runoperating systems, and software components (e.g., applications, APIs)modules, virtual machines, runtime libraries, etc.) running on hardware.In one example, an example system 100 may provide an environment forsoftware components to run, obey constraints set for operating, andutilize resources or facilities of the system 100, where components maybe software (e.g., applications, programs, modules, or other processes)running on one or more processing devices. For instance, software mayrun on a processing device such as a computer, mobile device (e.g.,smartphone/phone, tablet, laptop, personal digital assistant (PDA),etc.) and/or any other electronic devices. For an example of aprocessing device operating environment, refer to the example aspectsdepicted in FIG. 5 and the associated description below. In otherexamples, the components of systems disclosed herein may be spreadacross multiple devices.

As illustrated, system 100 may include a user device 102, a serverdevice 106, a malicious device 108, and a security service 110, all ofwhich may be connected via a network 112. In an example, network 112 mayfacilitate wired and/or wireless communication between entities 102-110.In some examples, network 112 may include a local area network, a widearea network, a virtual private network, and/or the Internet. In otherexamples, network 112 may include one or more networking devices, suchas, but not limited to, a router, a managed or unmanaged switch, agateway, a modem, an access point, or a firewall.

User device 102 may be any of a variety of computing devices, including,but not limited to, mobile computing devices, tablet computing devices,desktop computing devices, and/or laptop computing devices. In examples,user device 102 may include an operating system having one or more APIs114 that enable processes 116, 118 (e.g., applications and/or services)to access the underlying hardware, memory addresses, and otherfunctionality of user device 102. For example, APIs 114 may be theinterfaces that are directed to file searching functions on the useroperating system, including but not limited to, FindFirstFile,FindFirstFileEx, and the like. It is appreciated that while filesearching APIs are described herein, APIs 114 may be any of a variety offunctional APIs as required or desired. In aspects, process 116 may beassociated with a file-save-as dialog, which routinely calls API 114 andwould be considered trustworthy, such that security service 110 shouldnot restrict use of it. By contrast, malicious process 118 may call theAPI 114 and attempt to maliciously access and exploit files on userdevice 102. In examples, malicious process 118 may comprise softwareinstructions to encrypt files and/or send data back to a maliciousdevice through network 112. As such, unlike process 116 being atrustworthy dialog on user device 102, malicious process 118 would beconsidered untrustworthy such that security service 110 may restrict theuse of it on user device 102.

Security service 110 may facilitate the monitoring and/or analysis ofone or more APIs (e.g., the API 114) of user device 102. As illustrated,security service 110 may include a process data store 120, a calloperation data store 122, and an API monitoring processor 124. It isappreciated that while security service 110 is illustrated as includingelements 120-124, fewer, additional, or alternative elements may beused. In some examples, security service 110 may be a computing device,or may be multiple computing devices. In other examples, thefunctionally discussed herein with respect to one or more of components120-124 may be distributed among other devices of system 100 (e.g.,devices 102-106). In an example, at least some aspects of securityservice 100 may be local to devices 102-106 (e.g., on the same localnetwork, provided using the same computing resources, etc.), such as APImonitoring processor 126 on user device 102. In another example, atleast some aspects of security service 110 may be remote (e.g., providedby a remote data center, as a cloud service, etc.).

Process data store 120 may store historical information relating toattributes for one or more processes that are known to security service110. As an example, process data store 120 may store trust levelinformation (e.g., trusted or untrusted, scores, etc.) associated withthe known processes (e.g., by name or any other identifier). In someexamples, information from process data store 120 may be evaluated whendetermining a trust level of processes 116, 118 attempting to call API114. For example, process 116 may be associated with a “trusted” levelby security service 110, while process 118 may be associated with an“untrusted” level. The historical information within process data store120 may be updated as required or desired by security service 110, sothat more recent and current security threats may be accounted for andprotected against by the service.

Similarly, call operation data store 122 may store historicalinformation relating to attributes of call operations used by unknownprocesses that call API 114 of user device 102. As an example, even ifthe processes 116, 118 are unknown to security service 110, theunderlying executable code can be evaluated for a trust level based atleast in part on information stored by call operation data store 122.This enables even unknown processes to be evaluated for their trustlevel, thereby increasing security for the user. As an example, calloperation data store 122 may store information associated with callstack attributes, security certificates, and the like associated withcall operations of trusted and untrusted processes. In some examples,information from call operation data store 122 may be evaluated whendetermining a trust level for process 116, 118 when attempting to callAPI 114, based on comparing attributes of the call operation to knowntrusted and untrusted call operation attributes. The information withincall operation data store 122 may be updated as required or desired bysecurity service 110 and/or user device 102, so that more recent andcurrent security threats may be accounted for and protected against bythe service.

As illustrated, security service 110 further includes API monitoringprocessor 124. In some examples, API monitoring processor 124 of thesecurity service 110 may be used in conjunction with the local APImonitoring processor 126 on user device 102 in order to intercept andevaluate a call from process 116, 118 to API 114. In another example,certain aspects described above with respect to local API monitoringprocessor 126 may be performed by security service 110 using APImonitoring processor 124, such that at least a part of the evaluationmay be performed remote from user device 102.

To evaluate the trust level of the process 116, 118, API monitoringprocesser 126 may compare one or more attributes of processes 116, 118calling API 114 to the list of known processes (e.g., as may be storedby or accessed from process data store 120) in order to determine alevel of trust of the process. For example, process 116 may be trusted,while process 118 may be untrusted. At least a part of the informationmay be cached or stored locally by user device 102. In an example whereprocesses 116, 118 are unknown, API monitoring processor 126 may compareone or more attributes of a call operation associated with the processto known call operation attributes (e.g., as may be stored by oraccessed from call operation data store 122) to determine a level oftrust for the call operation. Based on the level of trust associatedwith the process 116, 118 and/or call operations, API monitoring process126 may block and terminate, or allow, the API call from the process116, 118 as described herein. In some examples, if the process isunknown and it is still allowed to call the API, one or more attributesassociated with the call operation may be stored by call operation datastore 122, such that the process may be allowed to call API 114 bysecurity service 110 during future use.

FIG. 2 illustrates an overview of an example call operation 200. In anexample, call operation 200 may include a call stack 202 used to storeinformation about active subroutines or functions 204 (e.g., as may beperformed by processes 116, 118 in FIG. 1) and to keep track of thepoint to which each active function should return control when executionis finished. For example, one of functions 204 may be directed toinitiate a search file API, which may return the search results back tothe process for further use. Each function 204 may be composed of astack frame 206 that includes data structures containing function stateinformation. In some examples, stack frame 206 includes one or moreparameters 208 that are passed to function 204, a return address 210back to the function's caller, and any local variables 212 generated byfunction 204. Additionally, stack frame 206 may include a frame pointer214 and a stack pointer 216 such that the location of stack frame 206within call stack 202 can be mapped.

In aspects, call stack 202 may include attributes that are associatedwith each function 204, such as, but not limited to, a function name, aprogramming language, and parameter names, types, and values. As such,by analyzing call stack 202, a trust level of a process performing calloperation 200 may be determined. In some examples, one of parameters 208may be analyzed to determine if it includes a wildcard that may be usedfor the search file API, given that, in some examples, a maliciousprocess may utilize such a parameter. In another example, return address210 may be analyzed to determine the address to which execution willreturn after the API call, such that a trust level may be determinedbased on the return address. In other examples, one or more scriptinterpreters (e.g., POWERSHELL, PYTHON, VBSCRIPT, BASH, etc.) may beanalyzed to determine if they are the type that are commonly used bypotentially malicious processes. In another example, one or moresecurity certificates associated with the process may be analyzed whendetermining the trust level.

FIG. 3 illustrates an overview of an example method 300 for restrictinguse of an API. In an example, method 300 may be performed by a computingdevice. In another example, method 300 may be performed by securityservice 110 in FIG. 1. Method 300 begins at operation 302, where an APIassociated with an operating system may be monitored, such as by APImonitoring processor 124 in FIG. 1. In an example, the API may beassociated with file system functionality as described herein. In otherexamples, one or more API hooks may be placed on APIs (e.g., forprocesses running in user mode, in kernel mode, or any combinationthereof) of the system, such that calls to the APIs by processes may bemonitored, intercepted, and/or evaluated.

Moving to operation 304, a call operation directed to the API isintercepted. In an example, the call operation may include or beassociated with a call stack associated with a process, such asprocesses 116, 118 in FIG. 1. In some examples, an API hook mayintercept call operations directed to a find file API, among other APIs,so that processes calling the APIs may be evaluated for a trust level.In other examples, after interception of the call operation, the callstack associated with the call may be analyzed to determine whether theprocess should be subject to additional evaluation. For example, callstack parameters, such as parameters 208 in FIG. 2, may be analyzed fora file search operation that includes a wildcard (e.g., an asterisk (*),a question mark (?), etc.). Typically, malicious processes search forfiles based on wildcard operators so as to be able to access all fileson the user's system. As such, file operations that include a wildcardoperator may receive additional evaluation based on a trust level. Inexamples, this process enables method 300 to reduce the number offalse-positives that may be generated when legitimate processes (e.g.,file save-as dialogs, file open dialogs, etc.) call the hooked filesearch APIs.

At determination 306, a trust level associated with the process thatcalled the file search API may be determined. In an example, thedetermination 306 may include evaluating the process based on one ormore criteria as described in greater detail below with respect to FIG.4. Example criteria include, but are not limited to, trustworthiness ofthe process (e.g., based on historical data whether the process can beconsidered trusted or untrusted, etc.), call stack attributes (e.g.,return addresses, call instructions, pointers, etc.), securitycertificates associated with the process, and the like. While method 300is described with respect to “trusted” and “untrusted” trust levels, itwill be appreciated that any of a variety of other trust levels may beused. For example, a trust level may comprise a score comparable to athreshold, a set of values or flags, etc. If it is determined that theprocess calling the API is trusted, flow branches “TRUSTED” to operation308, where the call to the API is allowed according to aspects describedherein. In some examples, when the call operation is allowed, noindication may be provided to the user. Method 300 terminates atoperation 308.

If, however, it is determined that the process calling the API isuntrusted, flow branches “UNTRUSTED” to operation 310. At operation 310,the call to the API may be blocked. In examples, blocking the API callmay comprise suspending execution of the process or returning executionto the process without performing the API call, among other examples. Inother examples, in response to the blocked call operation, it may bedetermined at determination 312 whether to override the blocked processand allow the call to proceed. For example, the determination 312 mayinclude a prompt that is presented to a user, such that the user mayprovide a user indication as to whether to allow the blocked process tocall the API. In some examples, the prompt to the user may also provideinformation regarding the process and/or the call operation that wasblocked. For example, the prompt may include information about the typeof files being searched (e.g., *.docx or *.xlsx), the name of theprocess calling the API, aspects used to determine the trust level, orany other information as required or desired as to indicate why theprocess is being blocked.

If, at the determination 312, it is determined not to override theblocked process, flow branches “NO” to operation 314, where the blockedprocess may be terminated. In examples, information associated with theprocess may be reported back to the security service for furtherprocessing (e.g., a stack trace, a crash dump, a signature associatedwith the process, etc.). In such scenarios, this process reporting maybe used to at least partially populate a list of known processes and thetrust level of such processes, such as in process data store 120 inFIG. 1. In other examples, the process may not be terminated and mayinstead be permitted to continue execution. In such examples, executionof the process may be unstable or unpredictable as a result of thefailed call to the API intercepted at operation 304. In another example,a prompt may be presented to the user, such that the user may provide anindication as to whether the process should be terminated. Thus, it willbe appreciated that aspects of operation 314 may be automatic, mayreceive manual input, or may be any combination thereof. Method 300terminates at operation 314.

If, however, it is determined at the determination 312 that the blockedprocess is to be overridden, flow instead branches “YES” to operation316, where the call to the API may be allowed according to aspectsdescribed herein. In some examples, flow terminates at operation 316. Inother examples, when the blocked process is overridden by the user, theuser may be presented with another prompt with which the user mayindicate whether to allow the API call by the process only once, orwhether to allow the API call and save attributes associated with thecall operation and/or the process for reference when evaluating futureAPI calls. In examples, if the user elects to save such attributes, flowprogresses to operation 318, where attributes associated with the calloperation and/or the process may be saved for future use. For example,such attributes may be added to a list of known processes and associatedwith a trust level of such processes, such as in process data store 120in FIG. 1. By allowing the user to whitelist desired processes, suchprocesses may more easily be allowed to execute within the system.Additionally or alternatively, the attributes directed to the calloperation may be added to a list of known call operation and the trustlevel of such call operations, such as in call operation data store 122in FIG. 1. This enables the process to call the APIs in futureoccurrences without being blocked. Operation 318 is illustrated using adashed box to indicate it is an optional step and may be omitted in someexamples. Method 300 terminates at operation 318.

FIG. 4 illustrates an overview of an example method 400 for determininga trust level of a process associated with a call operation. In anexample, method 400 may be performed by a computing device. In anotherexample, method 400 may be performed by security service 112 in FIG. 1.In some examples, aspects of method 400 may be performed at operation306 of method 300, as discussed above with respect to FIG. 3. Method 400begins at operation 402, where a call operation associated with aprocess is received for evaluation. In an example, an API hook mayintercept a call operation by a process to a find file API (e.g., as mayoccur by API monitoring processor 124 in FIG. 1). In another example,the intercepted call operation may be analyzed for a file searchoperation that includes a wildcard (e.g., an asterisk (*), a questionmark (?)) for further evaluation of a trust level.

Flow progresses to determination 404, where it may be determined whetherthe process calling the API is known to the security service (e.g.,security service 110 in FIG. 1). The determination 404 may includeaccessing a process data store, such as process data store 120 in FIG.1, to compare one or more attributes of the process to a set of knownprocesses and identify whether the process is a known process. Forexample, the process calling the API may be associated with one or moreprocess attributes, such as a name, hash, cryptographic signature, orother identifier. These attributes can be compared to a list ofhistorical processes such that the process may be identified by thesecurity service.

If it is determined that the process is known, flow branches “KNOWN” todetermination 406, where it may be determined whether the known processcalling the API is trustworthy. As an example, a known process may beassociated with a trust level (e.g., trusted or untrusted, a score,etc.) which may be stored by and/or accessed from a process data store.As such, a trust level for the process calling the API may be determinedbased on the stored historical data. If it is determined that theprocess can be trusted, flow branches “YES” to operation 408, where itmay be indicated (e.g., to determination 306 in FIG. 3) that the processis trusted. Accordingly, the process may be allowed to call the API, asdiscussed above. If, however, it is determined that the process cannotbe trusted, flow instead branches “NO” to operation 410, where it may beindicated that the process is untrusted. Accordingly, the call to theAPI by the process may be blocked from calling the API, as discussedabove.

Turning back to determination 404, if it is determined that the processcalling the API is unknown, flow branches “UNKOWN” to determination 412,where it may be determined whether an aspect of the call operation fromthe process is known to the security service. The determination 412 mayinclude accessing a call operation data store, such as call operationdata store 122 in FIG. 1, to compare one or more attributes of a callstack, such as call stack 202 in FIG. 2, to a set of known calloperation attributes. Accordingly, the attributes may be used todetermine whether the call operation is a known call operation. Forexample, a call operation to an API may be associated with one or morecall stack attributes or a security certificate, among other things.These attributes can be compared to known historical call operations,such that the call operation from the process may be identified by thesecurity service.

If it is determined that the call operation of the process is known,flow branches “KNOWN” to determination 414, where it may be determinedwhether the call operation is trustworthy. As an example, a trust levelmay be determined for the call operation based on information that isstored by and/or accessed from a call operation data store. As such, thetrust level of the call operation may be looked up or otherwisedetermined based on such historical data. If it is determined that thecall operation can be trusted, flow branches “YES” to operation 416,where it may be indicated that the process is trusted, based at least inpart on the call operation attributes. As discussed above, the call tothe API may be subsequently allowed. If, however, it is determined thatthe call operation cannot be trusted, flow instead branches “NO” tooperation 418, where it may be indicated that the process is untrusted,based at least in part on the call operation attributes. Accordingly,the call to the API may be blocked according to aspects describedherein.

Returning to determination 412, if it is determined that the calloperation is unknown, flow instead branches “UNKOWN” to operation 420,where it may be indicated that the process is untrusted, based at leastin part on the attributes being unknown by the security service. Asdescribed above, the indication may then be used in method 300 (shown inFIG. 3) such that the call operation may be blocked, thereby preventingthe process from calling the API. Method 400 terminates at operations408, 410, 416, 418, and/or 420.

FIG. 5 illustrates one example of a suitable operating environment 500in which one or more of the present embodiments may be implemented. Thisis only one example of a suitable operating environment and is notintended to suggest any limitation as to the scope of use orfunctionality. Other well-known computing systems, environments, and/orconfigurations that may be suitable for use include, but are not limitedto, personal computers, server computers, hand-held or laptop devices,multiprocessor systems, microprocessor-based systems, programmableconsumer electronics such as smart phones, network PCs, minicomputers,mainframe computers, distributed computing environments that include anyof the above systems or devices, and the like.

In its most basic configuration, operating environment 500 typicallyincludes at least one processing unit 502 and memory 504. Depending onthe exact configuration and type of computing device, memory 504(storing, among other things, process information, call operationinformation, instructions to perform the methods disclosed herein, etc.)may be volatile (such as RAM), nonvolatile (such as ROM, flash memory,etc.), or some combination of the two. This most basic configuration isillustrated in FIG. 5 by dashed line 506. Further, environment 500 mayalso include storage devices (removable, 508, and/or non-removable, 510)including, but not limited to, magnetic or optical disks or tape.Similarly, environment 500 may also have input device(s) 514 such askeyboard, mouse, pen, voice input, etc. and/or output device(s) 516 suchas a display, speakers, printer, etc. Also included in the environmentmay be one or more communication connections, 512, such as LAN, WAN,point to point, etc.

Operating environment 500 typically includes at least some form ofcomputer readable media. Computer readable media can be any availablemedia that can be accessed by processing unit 502 or other devicescomprising the operating environment. By way of example, and notlimitation, computer readable media may comprise computer storage mediaand communication media. Computer storage media includes volatile andnonvolatile, removable and non-removable media implemented in any methodor technology for storage of information such as computer readableinstructions, data structures, program modules or other data. Computerstorage media includes, RAM, ROM, EEPROM, flash memory or other memorytechnology, CD-ROM, digital versatile disks (DVD) or other opticalstorage, magnetic cassettes, magnetic tape, magnetic disk storage orother magnetic storage devices, or any other tangible, non-transitorymedium which can be used to store the desired information. Computerstorage media does not include communication media.

Communication media embodies computer readable instructions, datastructures, program modules, or other data in a modulated data signalsuch as a carrier wave or other transport mechanism and includes anyinformation delivery media. The term “modulated data signal” means asignal that has one or more of its characteristics set or changed insuch a manner as to encode information in the signal. By way of example,and not limitation, communication media includes wired media such as awired network or direct-wired connection, and wireless media such asacoustic, RF, infrared and other wireless media. Combinations of the anyof the above should also be included within the scope of computerreadable media.

The operating environment 500 may be a single computer operating in anetworked environment using logical connections to one or more remotecomputers. The remote computer may be a personal computer, a server, arouter, a network PC, a peer device or other common network node, andtypically includes many or all of the elements described above as wellas others not so mentioned. The logical connections may include anymethod supported by available communications media. Such networkingenvironments are commonplace in offices, enterprise-wide computernetworks, intranets and the Internet.

As will be understood from the foregoing disclosure, one aspect of thetechnology relates to a system comprising: at least one processor; andmemory storing instructions that, when executed by the at least oneprocessor, causes the system to perform a set of operation. The set ofoperations comprises: monitoring at least one application programminginterface (API) associated with performing one or more file findingfunctions; intercepting a call operation directed to the at least oneAPI, wherein the call operation is associated with a process attemptingto perform at least one of the one or more file finding functions;determining a trust level for the process; evaluating the determinedtrust level to determine whether the process is trusted or untrusted;and based on determining the process is untrusted, blocking the calloperation directed to the at least one API from performing the at leastone of the one or more file finding functions. In an example,determining the trust level for the process comprises: accessing aprocess data store to compare one or more attributes of the process toinformation for a set of known processes to determine whether theprocess is a known process; and based on determining that the process isa known process, determining whether the known process is untrusted. Inanother example, determining the trust level for the process comprises:accessing a process data store to compare one or more attributes of theprocess to information for a set of known processes to determine whetherthe process is an unknown process; accessing a call operation data storeto compare one or more attributes of the call operation to informationfor a set of known call operation attributes to determine whether thecall operation is untrusted; and determining the trust level for theprocess based at least in part on the determination whether the processis an unknown process and the determination whether the call operationis untrusted. In a further example, blocking the call operation furthercomprises displaying a prompt to override the blocked process and allowthe call operation. In yet another example, the set of operationsfurther comprises: in response to receiving a user indication at thedisplayed prompt to allow the call operation, adding the process to aset of known processes in a process data store. In a further stillexample, the set of operations further comprises: in response toreceiving a user indication at the displayed prompt to deny the calloperation, terminating the process. In another example, the promptincludes information relating to the at least one of the one or morefile finding functions of the API. In a further example, interceptingthe call operation comprises analyzing a call stack associated with theprocess for an operation having a wildcard character.

In another aspect, the technology relates to a method of restricting useof an application programming interface (API) associated with performingone or more file finding functions. The method comprises: receiving acall operation directed to an API associated with performing one or morefile finding functions, wherein the call operation is associated with aprocess; performing an evaluation of the process based on the calloperation, wherein the evaluation comprises at least one of: comparingone or more attributes of the process to a set of known processes; andcomparing one or more attributes of the call operation to a set of knowncall operations; determining, based at least in part on the evaluation,a trust level for the process; evaluating the determined trust level todetermine whether the process is trusted or untrusted; and based ondetermining that the process is untrusted, blocking the call operationdirected to the API from performing at least one of the one or more filefinding functions. In an example, in response to blocking the calloperation, the method further comprises overriding the call operationblocking with at least one action selected from the group consisting of:allowing the call operation and adding the process to the set of knownprocesses; and allowing the call operation only once. In anotherexample, in response to blocking the call operation, the method furthercomprises: capturing information associated with the process; andreporting the process back to a security service. In a further example,the API is associated with a user-mode of the operating system.

In a further aspect, the technology relates to a method of restrictinguse of at least one application programming interface (API). The methodcomprises: monitoring at least one API associated with performing one ormore file finding functions; intercepting a call operation directed tothe at least one API, wherein the call operation is associated with aprocess attempting to perform at least one of the one or more filefinding functions; determining a trust level for the process; evaluatingthe determined trust level to determine whether the process is trustedor untrusted; and based on determining the process is untrusted,blocking the call operation directed to the at least one API fromperforming the at least one of the one or more file finding functions.In an example, determining the trust level for the process comprises:accessing a process data store to compare one or more attributes of theprocess to information for a set of known processes to determine whetherthe process is a known process; and based on determining that theprocess is a known process, determining whether the known process isuntrusted. In another example, determining the trust level for theprocess comprises: accessing a process data store to compare one or moreattributes of the process to information for a set of known processes todetermine whether the process is an unknown process; accessing a calloperation process data store to compare one or more attributes of thecall operation to information for a set of known call operationattributes to determine whether the call operation is untrusted; anddetermining the trust level for the process based at least in part onthe determination whether the process is an unknown process and thedetermination whether the call operation is untrusted. In a furtherexample, blocking the call operation further comprises displaying aprompt to override the blocked process and allow the call operation. Inyet another example, the method further comprises: in response toreceiving a user indication at the displayed prompt to allow the calloperation, adding the process to a set of known processes in a processdata store. In a further still example, the method further comprises: inresponse to receiving a user indication at the displayed prompt to denythe call operation, terminating the process. In another example, theprompt includes information relating to the at least one of the one ormore file finding functions of the API. In a further example,intercepting the call operation comprises analyzing a call stackassociated with the process for an operation having a wildcardcharacter.

Aspects of the present disclosure, for example, are described above withreference to block diagrams and/or operational illustrations of methods,systems, and computer program products according to aspects of thedisclosure. The functions/acts noted in the blocks may occur out of theorder as shown in any flowchart. For example, two blocks shown insuccession may in fact be executed substantially concurrently or theblocks may sometimes be executed in the reverse order, depending uponthe functionality/acts involved.

The description and illustration of one or more aspects provided in thisapplication are not intended to limit or restrict the scope of thedisclosure as claimed in any way. The aspects, examples, and detailsprovided in this application are considered sufficient to conveypossession and enable others to make and use the best mode of claimeddisclosure. The claimed disclosure should not be construed as beinglimited to any aspect, example, or detail provided in this application.Regardless of whether shown and described in combination or separately,the various features (both structural and methodological) are intendedto be selectively included or omitted to produce an embodiment with aparticular set of features. Having been provided with the descriptionand illustration of the present application, one skilled in the art mayenvision variations, modifications, and alternate aspects falling withinthe spirit of the broader aspects of the general inventive conceptembodied in this application that do not depart from the broader scopeof the claimed disclosure.

What is claimed is:
 1. A system comprising: at least one processor; andmemory storing instructions that, when executed by the at least oneprocessor, causes the system to perform a set of operation, the set ofoperations comprising: monitoring at least one application programminginterface (API) associated with performing one or more file findingfunctions; intercepting a call operation directed to the at least oneAPI, wherein the call operation is associated with a process attemptingto perform at least one of the one or more file finding functions;determining a trust level for the process; wherein determining the trustlevel for the process comprises: accessing a process data store tocompare one or more attributes of the process to information for a setof known processes to determine whether the process is an unknownprocess; accessing a call operation data store to compare one or moreattributes of the call operation to information for a set of known calloperation attributes to determine whether the call operation isuntrusted; and determining the trust level for the process based atleast in part on the determination whether the process is an unknownprocess and the determination whether the call operation is untrusted;evaluating the determined trust level to determine whether the processis trusted or untrusted; based on determining the process is untrusted,presenting a prompt to a user to allow the call operation; responsive toa user indication to allow the call operation, allowing the calloperation; and based on determining the process is untrusted and absenta user indication to allow the call operation, blocking the calloperation directed to the at least one API from performing the at leastone of the one or more file finding functions.
 2. The system of claim 1,wherein the set of operations further comprises: in response toreceiving a user indication at the displayed prompt to allow the calloperation, adding the process to a set of known processes in a processdata store.
 3. The system of claim 1, wherein the set of operationsfurther comprises: in response to receiving a user indication at thedisplayed prompt to deny the call operation, terminating the process. 4.The system of claim 1, wherein the prompt includes information relatingto the at least one of the one or more file finding functions of theAPI.
 5. The system of claim 1, wherein intercepting the call operationcomprises analyzing a call stack associated with the process for anoperation having a wildcard character.
 6. A method of restricting use ofan application programming interface (API) associated with performingone or more file finding functions, the method comprising: receiving acall operation directed to an API associated with performing one or morefile finding functions, wherein the call operation is associated with aprocess; performing an evaluation of the process based on the calloperation, wherein the evaluation comprises at least one of: comparingone or more attributes of the process to a set of known processes; andcomparing one or more attributes of the call operation to a set of knowncall operations; determining, based at least in part on the evaluation,a trust level for the process, wherein determining the trust level forthe process comprises: accessing a process data store to compare one ormore attributes of the process to information for a set of knownprocesses to determine whether the process is an unknown process;accessing a call operation data store to compare one or more attributesof the call operation to information for a set of known call operationattributes to determine whether the call operation is untrusted; anddetermining the trust level for the process based at least in part onthe determination whether the process is an unknown process and thedetermination whether the call operation is untrusted; evaluating thedetermined trust level to determine whether the process is trusted oruntrusted; based on determining the process is untrusted, presenting aprompt to a user to allow the call operation; responsive to a userindication to allow the call operation, allowing the call operation; andbased on determining that the process is untrusted and absent a userindication to allow the call operation, blocking the call operationdirected to the API from performing at least one of the one or more filefinding functions.
 7. The method of claim 6, wherein, in response toallowing the call operation based on a user indication to allow the calloperation, the method further comprises at least one action selectedfrom the group consisting of: allowing the call operation and adding theprocess to the set of known processes; and allowing the call operationonly once.
 8. The method of claim 6, wherein, in response to blockingthe call operation, the method further comprises: capturing informationassociated with the process; and reporting the process back to asecurity service.
 9. The method of claim 6, wherein the API isassociated with a user-mode of the operating system.
 10. A method ofrestricting use of at least one application programming interface (API),the method comprising: monitoring at least one API associated withperforming one or more file finding functions; intercepting a calloperation directed to the at least one API, wherein the call operationis associated with a process attempting to perform at least one of theone or more file finding functions; determining a trust level for theprocess, wherein determining the trust level for the process comprises:accessing a process data store to compare one or more attributes of theprocess to information for a set of known processes to determine whetherthe process is an unknown process; accessing a call operation processdata store to compare one or more attributes of the call operation toinformation for a set of known call operation attributes to determinewhether the call operation is untrusted; and determining the trust levelfor the process based at least in part on the determination whether theprocess is an unknown process and the determination whether the calloperation is untrusted; evaluating the determined trust level todetermine whether the process is trusted or untrusted; based ondetermining the process is untrusted, presenting a prompt to a user toallow the call operation; responsive to a user indication to allow thecall operation, allowing the call operation; and based on determiningthe process is untrusted and absent a user indication to allow the calloperation, blocking the call operation directed to the at least one APIfrom performing the at least one of the one or more file findingfunctions.
 11. The method of claim 10, wherein the method furthercomprises: in response to receiving a user indication at the displayedprompt to allow the call operation, adding the process to a set of knownprocesses in a process data store.
 12. The method of claim 10, whereinthe method further comprises: in response to receiving a user indicationat the displayed prompt to deny the call operation, terminating theprocess.
 13. The method of claim 10, wherein the prompt includesinformation relating to the at least one of the one or more file findingfunctions of the API.
 14. The method of claim 10, wherein interceptingthe call operation comprises analyzing a call stack associated with theprocess for an operation having a wildcard character.